-- GENERATED SPELL FOR [Highperch Wyvern] --


function spell0_4107(pUnit, Event) --@Poison,n/a--
pUnit:FullCastSpellOnTarget(744,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4107', 30000, 1)
end

function Sorts_4107(pUnit, Event)
local choix_sorts_4107 = math.random(0, 0)
if choix_sorts_4107 == 0 then
pUnit:RegisterEvent('spell0_4107', 1, 1)
end
end

function mob4107_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_4107', math.random(1500, 3000), 1)
end

function mob4107_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4107_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4107_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(4107, 1, 'mob4107_Action')
RegisterUnitEvent(4107, 2, 'mob4107_Leave')
RegisterUnitEvent(4107, 3, 'mob4107_Kill')
RegisterUnitEvent(4107, 4, 'mob4107_Die')
